package com.esri.core.internal.tasks.ags.b;

import com.esri.core.internal.tasks.f;
import com.esri.core.renderer.ClassificationDefinition;
import java.util.LinkedHashMap;
import java.util.Map;

/* loaded from: classes.dex */
public class b extends f {
    private static final long serialVersionUID = 1;
    private ClassificationDefinition a;
    private String b;

    public b(ClassificationDefinition classificationDefinition) {
        this.a = classificationDefinition;
    }

    public void a(ClassificationDefinition classificationDefinition) {
        this.a = classificationDefinition;
    }

    public ClassificationDefinition a() {
        return this.a;
    }

    public void a(String str) {
        this.b = str;
    }

    public String b() {
        return this.b;
    }

    @Override // com.esri.core.internal.tasks.f
    public Map<String, String> generateRequestParams() throws Exception {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("f", "json");
        ClassificationDefinition classificationDefinition = this.a;
        if (classificationDefinition != null) {
            linkedHashMap.put("classificationDef", classificationDefinition.toJson());
        }
        String str = this.b;
        if (str != null && str.length() > 0) {
            linkedHashMap.put("where", this.b);
        }
        return linkedHashMap;
    }

    @Override // com.esri.core.internal.tasks.f
    public boolean validate() {
        return this.a != null;
    }

    public String toString() {
        return "GenerateRendererTaskParametersInternal [Classification Definition=" + this.a + ", Where=" + this.b + "]";
    }
}
